package com.example.springbott.mapper;

import com.example.springbott.bean.MarketCategory;
import com.example.springbott.bean.MarketCategoryExample;
import com.example.springbott.bean.silic.CategoryListVo;
import com.example.springbott.bean.silic.MarketCategoryVo;
import com.example.springbott.bean.zeng.AdminGoodsCatAndBrandCategoryChildrenVO;
import com.example.springbott.bean.zeng.AdminGoodsCatAndBrandCategoryVO;
import com.example.springbott.bean.zeng.InnerCategoryOfCatAndBrandL1VO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MarketCategoryMapper {
    long countByExample(MarketCategoryExample example);

    int deleteByExample(MarketCategoryExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketCategory record);

    int insertSelective(MarketCategory record);

    List<MarketCategory> selectByExample(MarketCategoryExample example);

    MarketCategory selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MarketCategory record, @Param("example") MarketCategoryExample example);

    int updateByExample(@Param("record") MarketCategory record, @Param("example") MarketCategoryExample example);

    int updateByPrimaryKeySelective(MarketCategory record);

    int updateByPrimaryKey(MarketCategory record);

    List<AdminGoodsCatAndBrandCategoryVO> getParentCategory(int i);

    List<AdminGoodsCatAndBrandCategoryChildrenVO> getChildrenCategory(Integer parentCategoryId);

    List<InnerCategoryOfCatAndBrandL1VO> selectValueAndLabel();

    List<CategoryListVo> selectCategoryL1(String level);

    MarketCategoryVo selectCategoryById(Integer id);

    List<MarketCategory> selectByZeng(@Param("pid") int i,@Param("level") String l2, @Param("deleted") boolean b);
}